<%-- 
    Document   : Employee
    Created on : May 9, 2012, 9:28:43 AM
    Author     : Nguyen Hung
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>

        <script type="text/javascript" language="javascript" src="../scripts/jQuery/confirm.js"></script>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery.fancybox-1.3.4.pack.js"></script>

        <link type="text/css" href="../scripts/scroll/jquery.jscrollpane.css" rel="stylesheet" media="all" />

        <!-- the mousewheel plugin -->

        <!-- the jScrollPane script<script type="text/javascript" src="../scripts/scroll/jquery.jscrollpane.min.js"></script> -->

        <!-- scripts specific to this demo site -->


        <script type="text/javascript" language="javascript">
            var open_cur = 0;
            $j = jQuery.noConflict();
            function isNumberKey(evt)
            {
                var charCode = (evt.which) ? evt.which : event.keyCode
                if (charCode > 31 && (charCode < 48 || charCode > 57))
                    return false;

                return true;
            }
            //            $j(function()
            //            {
            //                $j('.scroll-pane').jScrollPane({showArrows: true});
            //            });
            $j(document).ready(function(){ 
                $j('.search_box').hide();       
                $j('.sidebar_search').live('click',function(){
                    $j('.search_box').hide();
                    if($j(this).next().hasClass('active')){
                        
                        $j('.search_box').removeClass('active');
                    }else{

                        $j('.search_box').removeClass('active');
                        $j(this).next().addClass('active');
                        $j(this).next().show();
                       
                    }
                });
                $j(".content_right").live("click",function(){
                    $j('.search_box').hide();
                });
                $j(".btnsave_row").live("click",function(){
                    fv200 =    $j(this).parents(".tour_content_row_content_copy").children(".tour_row1").children(".fv200Select").children('option:selected').text();
                    //alert($j(this).parents(".tour_content_row_content_copy").children(".tour_row1").find(".fv200").attr("class"));
                    //$j(this).parent().find('.tour_row1').children('.service1').children('option:selected').text();    
                });
              
                $j(".tour_content_row_content_copy:even").css("background","#E0EFFC");
              
                $j(".price").live("keyup",function(){
                    var price =  $j(this).parents(".tour_content_row_content").find(".tour_row3").children(".price").val();    
                    var sl1 = $j(this).parents(".tour_content_row_content").find(".tour_row5").children(".sl1").val();            
                    var sl2 = $j(this).parents(".tour_content_row_content").find(".tour_row7").children(".sl2").val()
                    var sl3 = $j(this).parents(".tour_content_row_content").find(".tour_row9").children(".sl3").val()
                    var sl4 = $j(this).parents(".tour_content_row_content").find(".tour_row11").children(".sl4").val()
                    tt1 = parseFloat(price)* parseFloat(sl1);             
                    tt2 = parseFloat(price)* parseFloat(sl2);  
                    tt3 = parseFloat(price)* parseFloat(sl3);  
                    tt4 = parseFloat(price)* parseFloat(sl4);  
                    $j(this).parents(".tour_content_row_content").find(".tour_row6").children(".tt1").text(tt1);
                    $j(this).parents(".tour_content_row_content").find(".tour_row8").children(".tt2").text(tt2);
                    $j(this).parents(".tour_content_row_content").find(".tour_row10").children(".tt3").text(tt3);
                    $j(this).parents(".tour_content_row_content").find(".tour_row12").children(".tt4").text(tt4);
              
             
                });
                $j(".sl1").live("keyup",function(){
                    var price =  $j(this).parents(".tour_content_row_content").find(".tour_row3").children(".price").val();    
                    var sl1 = $j(this).parents(".tour_content_row_content").find(".tour_row5").children(".sl1").val();            
                    var sl2 = $j(this).parents(".tour_content_row_content").find(".tour_row7").children(".sl2").val()
                    var sl3 = $j(this).parents(".tour_content_row_content").find(".tour_row9").children(".sl3").val()
                    var sl4 = $j(this).parents(".tour_content_row_content").find(".tour_row11").children(".sl4").val()
                    tt1 = parseFloat(price)* parseFloat(sl1);             
                    tt2 = parseFloat(price)* parseFloat(sl2);  
                    tt3 = parseFloat(price)* parseFloat(sl3);  
                    tt4 = parseFloat(price)* parseFloat(sl4);  
                    $j(this).parents(".tour_content_row_content").find(".tour_row6").children(".tt1").text(tt1);
                    $j(this).parents(".tour_content_row_content").find(".tour_row8").children(".tt2").text(tt2);
                    $j(this).parents(".tour_content_row_content").find(".tour_row10").children(".tt3").text(tt3);
                    $j(this).parents(".tour_content_row_content").find(".tour_row12").children(".tt4").text(tt4);
              
             
                });
                $j(".sl2").live("keyup",function(){
                    var price =  $j(this).parents(".tour_content_row_content").find(".tour_row3").children(".price").val();    
                    var sl1 = $j(this).parents(".tour_content_row_content").find(".tour_row5").children(".sl1").val();            
                    var sl2 = $j(this).parents(".tour_content_row_content").find(".tour_row7").children(".sl2").val()
                    var sl3 = $j(this).parents(".tour_content_row_content").find(".tour_row9").children(".sl3").val()
                    var sl4 = $j(this).parents(".tour_content_row_content").find(".tour_row11").children(".sl4").val()
                    tt1 = parseFloat(price)* parseFloat(sl1);             
                    tt2 = parseFloat(price)* parseFloat(sl2);  
                    tt3 = parseFloat(price)* parseFloat(sl3);  
                    tt4 = parseFloat(price)* parseFloat(sl4);  
                    $j(this).parents(".tour_content_row_content").find(".tour_row6").children(".tt1").text(tt1);
                    $j(this).parents(".tour_content_row_content").find(".tour_row8").children(".tt2").text(tt2);
                    $j(this).parents(".tour_content_row_content").find(".tour_row10").children(".tt3").text(tt3);
                    $j(this).parents(".tour_content_row_content").find(".tour_row12").children(".tt4").text(tt4);
              
             
                });
                $j(".sl3").live("keyup",function(){
                    var price =  $j(this).parents(".tour_content_row_content").find(".tour_row3").children(".price").val();    
                    var sl1 = $j(this).parents(".tour_content_row_content").find(".tour_row5").children(".sl1").val();            
                    var sl2 = $j(this).parents(".tour_content_row_content").find(".tour_row7").children(".sl2").val()
                    var sl3 = $j(this).parents(".tour_content_row_content").find(".tour_row9").children(".sl3").val()
                    var sl4 = $j(this).parents(".tour_content_row_content").find(".tour_row11").children(".sl4").val()
                    tt1 = parseFloat(price)* parseFloat(sl1);             
                    tt2 = parseFloat(price)* parseFloat(sl2);  
                    tt3 = parseFloat(price)* parseFloat(sl3);  
                    tt4 = parseFloat(price)* parseFloat(sl4);  
                    $j(this).parents(".tour_content_row_content").find(".tour_row6").children(".tt1").text(tt1);
                    $j(this).parents(".tour_content_row_content").find(".tour_row8").children(".tt2").text(tt2);
                    $j(this).parents(".tour_content_row_content").find(".tour_row10").children(".tt3").text(tt3);
                    $j(this).parents(".tour_content_row_content").find(".tour_row12").children(".tt4").text(tt4);
              
             
                });
                $j(".sl4").live("keyup",function(){
                    var price =  $j(this).parents(".tour_content_row_content").find(".tour_row3").children(".price").val();    
                    var sl1 = $j(this).parents(".tour_content_row_content").find(".tour_row5").children(".sl1").val();            
                    var sl2 = $j(this).parents(".tour_content_row_content").find(".tour_row7").children(".sl2").val()
                    var sl3 = $j(this).parents(".tour_content_row_content").find(".tour_row9").children(".sl3").val()
                    var sl4 = $j(this).parents(".tour_content_row_content").find(".tour_row11").children(".sl4").val()
                    tt1 = parseFloat(price)* parseFloat(sl1);             
                    tt2 = parseFloat(price)* parseFloat(sl2);  
                    tt3 = parseFloat(price)* parseFloat(sl3);  
                    tt4 = parseFloat(price)* parseFloat(sl4);  
                    $j(this).parents(".tour_content_row_content").find(".tour_row6").children(".tt1").text(tt1);
                    $j(this).parents(".tour_content_row_content").find(".tour_row8").children(".tt2").text(tt2);
                    $j(this).parents(".tour_content_row_content").find(".tour_row10").children(".tt3").text(tt3);
                    $j(this).parents(".tour_content_row_content").find(".tour_row12").children(".tt4").text(tt4);
              
             
                });
                //                $j(".edit").live("click",function(){
                //                   
                //                     $j(".btnsave").hide();
                //                    
                //                });
                //                $j(".btnsave_row").live("click",function(){
                //                   
                //                     $j(".btnsave").show();
                //                    
                //                });
                $j(".char_two").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                 
                });
                $j(".char_one").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                 
                });
                $j(".price").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                $j(".sl1").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                $j(".sl2").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                $j(".sl3").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                $j(".sl4").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                $j(".buy_row").live("click",function(){
                    if($j(this).val() < 1){
                        $j(this).val("");
                    }
                });
                
                $j(".linkKH").live("click",function(){
                 
                    fv050 =  $j(".codeTourTarger").attr("lang");
                   
                    window.location="customer4tour.jsp?pv050="+fv050;
                });
                $j(".linkTL").live("click",function(){
                 
                    fv050 =  $j(this).parents(".content_detail").find(".fv050").val();
                  
                    window.location="documentTour.jsp?action=linkrecord&fv050="+fv050;
                });
              
                $j(".edit").live("click",function(){ 
                    $j(this).addClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".activedelete").addClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".activedeleterow").removeClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".btnsave_row").removeClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".rowedit").children(".activeAction").removeClass("intext");                   
                    $j(this).parents(".tour_content_row_content_copy").find(".rowedit").children(".activeAction").addClass("inactive");                   
                    $j(this).parents(".tour_content_row_content_copy").find(".rowedit").children(".outtext").css("display","none");
                    
                });
                $j(".activedeleterow").live("click",function(){
                    $j(this).addClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".activeAction").removeClass("inactive");
                    $j(this).parents(".tour_content_row_content_copy").find(".activeAction").addClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".btnsave_row").addClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".rowedit").children(".outtext").css("display","block");
                    $j(this).parents(".tour_content_row_content_copy").find(".edit").removeClass("intext");
                    $j(this).parents(".tour_content_row_content_copy").find(".activedelete").removeClass("intext");
                         
                });
               
                //update 1 row tour
                $j(".addrow").live("click",function(){
                    fv050 = $j(this).parents(".create_tour_around").find(".fv050").val();   
                    
                });
                
                $j("#combobox_but").click(function(){
                    $j(".codeTour").val("12");
                });
                
                $j(".btnsave_row").live("click",function(){
                    pv500 = $j(this).attr("lang");
                    fv050 = $j(this).parents(".create_tour_around").find(".fv050").val();       
                   
                    fv200 = $j(this).parents(".tour_content_row_content_copy").find(".fv200").val();
                    vv502 = $j(this).parents(".tour_content_row_content_copy").find(".vv502").val();
                    vn507 = $j(this).parents(".tour_content_row_content_copy").find(".vn507").val();
                    fk100 = $j(this).parents(".tour_content_row_content_copy").find(".fk100").val();
                    vn508 = $j(this).parents(".tour_content_row_content_copy").find(".vn508").val();
                    vn510 = $j(this).parents(".tour_content_row_content_copy").find(".vn510").val();
                    vn512 = $j(this).parents(".tour_content_row_content_copy").find(".vn512").val();                    
                    vn514 = $j(this).parents(".tour_content_row_content_copy").find(".vn514").val();
                    
                    $j.post("managerTour.jsp?action=saveRowTour&fv200="+fv200+"&vv502="+vv502+"&vn507="+vn507
                        +"&fk100="+fk100+"&vn508="+vn508+"&vn510="+vn510+"&vn512="+vn512+"&vn514="+vn514+"&pv500="+pv500+"&fv050="+fv050,function(data){
                        if(data!= null){
                            window.location="managerTour.jsp?action=linkrecord&fv050="+fv050;
                        
                        }
                                        
                    }); 
                    // alert(fv200+","+vv502+","+vn507+","+fk100+","+vn508+","+vn510+","+vn512+","+vn514   );
                    
                });
                $j(".fv050").live("click",function(){
                    fv050 = $j(".fv050").children("option:selected").text();                 
                    $j(".codeTour").val(fv050);
                    

                 
                });
                $j(".codeTour").live("click",function(){
                    $j(".codeTour").val("");
                });
                
                $j(".codeTour").live("mouseout",function(){
                    fv050 = $j(".fv050").children("option:selected").text();                 
                    $j(".codeTour").val(fv050);
                });
             
                fv050 = $j(".fv050").children("option:selected").text();
                 
                $j(".codeTour").val(fv050);
               
                  vers = <c:out value='${TourBean.vers}'/>;
                  $j(".abc"+vers).addClass("active_version");
                
                
            });
             
                
        </script>
        <style type="text/css" id="page-css">
            /* Styles specific to this particular page */
            .intext{
                display:none;
            }
            .inactive{
                display: block;
                float:right;
            }
            .activedeleterow{
                float:left;
            }
            .scroll-pane
            {
                width: 100%;

                height:auto;
                overflow: auto;
            }

            .horizontal-only
            {
                height: auto;

            }
            .message{
                float:left;
                margin-right:572px;
                margin-top:10px;
            }
            .create_tour_around{
                width:1133px;
                float:left;
            }
            .groub_tour{


                left:15px;
            }
            .action_ct{
                margin-left: 757px;
                margin-top: -60px;
                position: absolute;

            }


            .mail_sms{
                float:right;
            }
            .linkKH{
                background: url("../images/bg_button3.gif") repeat-x scroll 0 0 transparent;
                float: right;
                height: 19px;
                margin-bottom: 2px;
                margin-top: 5px;
                padding-left: 13px;
                padding-top: 7px;
                width: 88px;
                margin-right: 10px;
            }
            .linkTL{
                background: url("../images/bg_button3.gif") repeat-x scroll 0 0 transparent;
                float: right;
                height: 19px;
                margin-bottom: 2px;

                margin-top: 5px;
                padding-left: 16px;
                padding-top: 7px;
                width: 65px;

            }
            .linkKH a,.linkTL a{
                color:#fff;
                font-size:11px !important;
            }
            .edit{
                float:left;
            }

            #combobox_but{

            }
            .desc{
                color: #FFFFFF;
                float: left;
                margin-left: 30px;
                margin-top: 10px;
            }
            .tb-row2 span,.tb-row3 span,.tb-row4 span,.tb-row5 span{
                text-align: right;
                float:right;
            }
            .codeTourTarger{
                color: #FFFFFF;
                font-weight: bold;
                margin-left: 58px;
                margin-top: -25px;
                position: inherit;
            }
            .active_version{
                float:left;
                background: #2A4B6D;
            }
        </style>
    </head>


    <body>
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <div id="content">
            <div id="menu_top">
                <div class="dropdown">
                    <div class="select_choise">
                        <a href="#"><span>Khu vực</span></a>
                    </div>
                    <div class="select_hidden">
                        <ul>

                            <li><a href="#"><span>Filter Cấp 3</span></a></li>
                            <li><a href="#"><span>Filter Cấp 3</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="dropdown">
                    <div class="select_choise">
                        <a href="#"><span>Outlets</span></a>
                    </div>
                    <div class="select_hidden">
                        <ul>
                            <li><a href="#"><span>Ban Điều Hành</span></a></li>
                            <li><a href="#"><span>Nhóm IT</span></a></li>
                            <li><a href="#"><span>Filter Cấp 3</span></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="content_detail" class="content_detail">         

                <!-- start sidebar row2--->
                <div class="sidebar_row2">
                    <div class="sidebar">
                        <div class="sidebar_search">
                            <span> <h:outputText value="Tìm kiếm"/></span>
                        </div>
                        <div class="search_box" style="display:none;">
                            <form action="" method="get">
                                <h3><h:outputText value="#{locale.search}"/></h3>
                                <div class="fields_input">
                                    <input name="" type="text"  value="<h:outputText value="#{locale.search_key}"/>..." onblur="if(this.value=='')this.value='<h:outputText value="#{locale.search_key}"/>...';" onfocus="if(this.value=='<h:outputText value="#{locale.search_key}"/>...')this.value='';" />
                                    <input name="" type="submit" value="OK" />
                                </div>
                            </form>
                            <h4><h:outputText value="#{locale.advance_search}"/></h4>
                            <div class="fields_select">
                                <select name="">
                                    <option><h:outputText value="#{locale.group}"/> / <h:outputText value="#{locale.Departments}"/></option>
                                </select>
                            </div>
                            <div class="fields_select">
                                <select name="">
                                    <option><h:outputText value="#{locale.sex}"/>...</option>
                                </select>
                            </div>
                            <div class="fields_select">
                                <select name="">
                                    <option><h:outputText value="#{locale.position}"/>...</option>
                                </select>
                            </div>
                            <div class="fields_select">
                                <select name="">
                                    <option><h:outputText value="#{locale.income}"/>...</option>
                                </select>
                            </div>
                            <div class="fields_submit">
                                <input name="" type="submit" value="<h:outputText value="#{locale.search_option}"/>" />
                            </div>
                        </div>
                    </div>
                </div>

                <!-- end sidebar row2--->
                <div class="fillter">
                    <%--
                    <div class="dropdown">
                        <h:panelGroup id="reload5">
                            <div class="select_choise ">

                                <div><a href="#"><span><h:outputText value="Action"/></span></a></div>


                            </div>
                            <div class="select_hidden">
                                <ul>

                                    <li>
                                        <div class="linkKH"><a href="#"><span><h:outputText value="Khách hàng"/></span></a></div>

                                    </li>

                                    <li>
                                        <div class="linkTL"><a href="#"><span><h:outputText value="Tài liệu"/></span></a></div>


                                </ul>
                            </div>
                        </h:panelGroup>
                    </div>--%>
                </div>

                <!--start create tour content-->
                <div class="content_right">

                    <div class="title_tour">
                        <h2><h:outputText value="#{locale.calculation}" style="text-transform:uppercase"/></h2>

                    </div>
                    <div class="mail_sms">
                        <div class="message"><h:outputText value="#{TourBean.message}" style="color:red;"/></div>
                        <div class="linkTL"><a href="#"><span><h:outputText value="#{locale.document}" style="text-transform:uppercase"/></span></a></div>
                        <div class="linkKH"><a href="#" ><span><h:outputText value="#{locale.customer}" style="text-transform:uppercase"/></span></a></div>
                    </div>
                    <a4j:form id="tour">
                        <%--
                        <div class="action_ct">
                            <div class="sendmail">  <h:outputLink rendered="#{loginSession.right.MENU_COM_VIEW}" value="customer4tour.jsp?pv050=#{TourBean.fs200}"><span><h:outputText value="Khách hàng" /></span></h:outputLink></div>
                            <div class="sendsms"> <h:outputLink value="documentTour.jsp?action=link215487&id=0&fs200=#{TourBean.fs200}">Tài Liệu</h:outputLink></div>
                        </div>--%>
                        <div id="container">

                            <div class="scroll-pane horizontal-only">
                                <!-- start create tour around-->
                                <div class="create_tour_around">
                                    <!-- start content head-->
                                    <div class="create_tour_head">
                                        <div class="groub_tour">
                                            <div class="code_tour">

                                                <label><h:outputText value="#{locale.code_tour}"/>:</label> <!--="showPleaseWait();" -->


                                            </div>
                                            <div class="currency">
                                                <label><h:outputText value="#{locale.currency}"/>:</label>
                                                <h:selectOneMenu  value="#{TourBean.vv052}" id="ngoaite"  >                                           
                                                    <f:selectItem itemValue="USD" itemLabel="USD"/>   
                                                    <f:selectItem itemValue="VND" itemLabel="VND"/>   

                                                </h:selectOneMenu>
                                            </div>
                                        </div>
                                        <div class="desc"><h:outputText value="#{TourBean.desc}"/></div>

                                    </div>
                                    <!-- end content head-->
                                    <!-- start content center-->
                                    <div class="create_tour_content">
                                        <div class="tour_content_row_head">

                                            <div class="tour_row13"><h:outputText value=""/></div>

                                            <div class="tour_row1"><h:outputText value="#{locale.items}"/></div>
                                            <div class="tour_row2"><h:outputText value="#{locale.notice1}"/></div>
                                            <div class="tour_row3"><h:outputText value="#{locale.price}"/></div>
                                            <div class="tour_row4"><h:outputText value="#{locale.supplier}"/></div>
                                            <div class="tour_row5"><h:outputText value="#{locale.sl}"/></div>
                                            <div class="tour_row6"><h:outputText value="#{locale.money}"/></div>
                                            <div class="tour_row7"><h:outputText value="#{locale.sl}"/></div>
                                            <div class="tour_row8"><h:outputText value="#{locale.money}"/></div>
                                            <div class="tour_row9"><h:outputText value="#{locale.sl}"/></div>
                                            <div class="tour_row10"><h:outputText value="#{locale.money}"/></div>                           
                                            <div class="tour_row11"><h:outputText value="#{locale.sl}"/></div>
                                            <div class="tour_row12"><h:outputText value="#{locale.money}"/></div>
                                            <div class="tour_row12">Thành tiền</div>

                                        </div>

                                        <a4j:repeat value="#{TourBean.listVersionTour}" var="item" id="listTour">

                                            <div class="tour_content_row_content_copy">

                                                <div class="tour_row13">



                                                </div>

                                                <div class="tour_row1 row_left rowedit">
                                                    <h:outputText value="#{item.vv503}"  styleClass="activeAction outtext"/>


                                                </div>

                                                <div class="tour_row2 row_left rowedit">
                                                    &nbsp;&nbsp;<h:outputText value="#{item.vv502}" styleClass="activeAction outtext"/>
                                                    <h:inputText value="#{item.vv502}" styleClass="activeAction intext vv502 display_text_left"/>
                                                </div>
                                                <div class="tour_row3 number_right rowedit">
                                                    <h:outputText value="#{item.vn507St}"   styleClass="activeAction outtext"></h:outputText>&nbsp;&nbsp;



                                                    </div>
                                                    <div class="tour_row4 row_left rowedit"> 
                                                    <h:outputLink styleClass="activeAction outtext" value="documentTour.jsp?action=link215487&id=#{item.fk100}&fv050=#{item.fv050}">
                                                        &nbsp;&nbsp;<h:outputText value="#{item.vv504}"  />
                                                    </h:outputLink>

                                                </div>
                                                <div class="tour_row5 rowedit">
                                                    <h:outputText value="#{item.vn508}" styleClass="activeAction outtext"/>

                                                </div>
                                                <div class="tour_row6 number_right rowedit">
                                                    <h:outputText value="#{item.tt1}" ></h:outputText>&nbsp;&nbsp;

                                                    </div>
                                                    <div class="tour_row7 rowedit">
                                                    <h:outputText value="#{item.vn510}" styleClass="activeAction outtext"/>

                                                </div>
                                                <div class="tour_row8 number_right ">
                                                    <h:outputText value="#{item.tt2}" ></h:outputText>&nbsp;&nbsp;

                                                    </div>
                                                    <div class="tour_row9 rowedit">
                                                    <h:outputText value="#{item.vn512}" styleClass="activeAction outtext"/>

                                                </div>
                                                <div class="tour_row10 number_right">
                                                    <h:outputText value="#{item.tt3}" ></h:outputText>&nbsp;&nbsp;

                                                    </div>
                                                    <div class="tour_row11 rowedit">
                                                    <h:outputText value="#{item.vn514}" styleClass="activeAction outtext"/>

                                                </div>
                                                <div class="tour_row12 number_right">
                                                    <h:outputText value="#{item.tt4}" ></h:outputText>&nbsp;&nbsp;

                                                    </div>


                                                </div>
                                        </a4j:repeat>
                                        <div class="codeTourTarger" lang="<h:outputText value='#{TourBean.fv050}'/>"> <h:outputText value="#{TourBean.codeVv051}"/></div>

                                        <div class="tour_content_row_content_sum" >
                                            <div class="tour_row13">

                                            </div>
                                            <div class="tour_row1">

                                            </div>
                                            <div class="tour_row2"><h:outputText value="#{locale.total}"/>:</div>
                                            <div class="tour_row3"></div>
                                            <div class="tour_row4"> </div>
                                            <div class="tour_row5"></div>
                                            <div class="tour_row6"><h:outputText value="#{TourBean.tong1}"></h:outputText>&nbsp;&nbsp;</div>
                                                <div class="tour_row7"></div>
                                                <div class="tour_row8"><h:outputText value="#{TourBean.tong2}"></h:outputText>&nbsp;&nbsp;</div>
                                                <div class="tour_row9"></div>
                                                <div class="tour_row10"><h:outputText value="#{TourBean.tong3}"></h:outputText>&nbsp;&nbsp;</div>
                                                <div class="tour_row11"></div>
                                                <div class="tour_row12 number_right"><h:outputText value="#{TourBean.tong4}"></h:outputText>&nbsp;&nbsp;</div>


                                            </div>

                                        </div>
                                        <!-- end content center-->
                                        <!-- start content bottom-->
                                        <div class="create_tour_bottom">   

                                            <div class="create_tour_bottom_left">
                                                <div class="create_tour_version">
                                               
                                                <a4j:repeat value="#{TourBean.listVersion}" var="i">
                                                    <h:outputLink value="targetmanagerTour.jsp?action=targetTour&fv050=#{TourBean.fv050}&vers=#{i}" styleClass="btn_vesion abc#{i}">                                                                                
                                                        <h:outputText value="#{i}" />
                                                       
                                                        </h:outputLink>
                                                    </a4j:repeat>
                                                    </div>
                                                    <div class="create_tour_persion">
                                                    <h:panelGroup style="width:100%;float:left;height:20px;" rendered="#{TourBean.vv092 != null}">
                                                        <label class="label_K">Kiểm tra:</label>
                                                        <h:outputText value="#{TourBean.vv092} ( #{TourBean.vd091} )" styleClass="persion_K"/>
                                                    </h:panelGroup>
                                                    <h:panelGroup style="width:100%;float:left;height:20px;" rendered="#{TourBean.vv094 != null}">
                                                        <label class="label_K">Xác nhân:</label>
                                                        <h:outputText value="#{TourBean.vv094} ( #{TourBean.vd093} )" styleClass="persion_F"/>
                                                    </h:panelGroup>
                                                </div>
                                            </div>
                                            <div class="create_tour_bottom_right">

                                                <div class="footer_tb_row">                                                
                                                    <div class="tb-row1"><h:outputText value="Giá bán:" /></div>
                                                    <div class="tb-row2"><h:outputText value="#{TourBean.vn055St}" styleClass=" display_text_right" /></div>
                                                    <div class="tb-row3"><h:outputText value="#{TourBean.vn058St}" styleClass=" display_text_right" /></div>
                                                    <div class="tb-row4"><h:outputText value="#{TourBean.vn061St}" styleClass=" display_text_right"/></div>
                                                    <div class="tb-row5"><h:outputText value="#{TourBean.vn064St}" styleClass=" display_text_right"/></div>
                                                </div>
                                                <div class="footer_tb_row">
                                                    <div class="tb-row1"><h:outputText value="Net:"/></div>
                                                    <div class="tb-row2"><h:outputText value="#{TourBean.net1}" styleClass="foot_row"/></div>
                                                    <div class="tb-row3"><h:outputText value="#{TourBean.net2}" styleClass="foot_row"/></div>
                                                    <div class="tb-row4"><h:outputText value="#{TourBean.net3}" styleClass="foot_row"/></div>
                                                    <div class="tb-row5"><h:outputText value="#{TourBean.net4}" styleClass="foot_row"/></div>
                                                </div>
                                                <div class="footer_tb_row">
                                                    <div class="tb-row1"><h:outputText value="Lãi gộp:"/></div>
                                                    <div class="tb-row2"><h:outputText value="#{TourBean.laigop1}" styleClass="foot_row"/></div>
                                                    <div class="tb-row3"><h:outputText value="#{TourBean.laigop2}" styleClass="foot_row"/></div>
                                                    <div class="tb-row4"><h:outputText value="#{TourBean.laigop3}" styleClass="foot_row"/></div>
                                                    <div class="tb-row5"><h:outputText value="#{TourBean.laigop4}" styleClass="foot_row"/></div>
                                                </div>
                                                <div class="footer_tb_row">
                                                    <div class="tb-row1"><h:outputText value="Tỉ lệ:"/></div>
                                                    <div class="tb-row2"><h:outputText value="#{TourBean.tile1} %" styleClass="foot_row"/></div>
                                                    <div class="tb-row3"><h:outputText value="#{TourBean.tile2} %" styleClass="foot_row"/></div>
                                                    <div class="tb-row4"><h:outputText value="#{TourBean.tile3} %" styleClass="foot_row"/></div>
                                                    <div class="tb-row5"><h:outputText value="#{TourBean.tile4} %" styleClass="foot_row"/></div>
                                                </div>
                                                <div class="footer_tb_row">
                                                    <div class="tb-row1"><h:outputText value="Tổng thu:"/></div>
                                                    <div class="tb-row2"><h:outputText value="#{TourBean.tongthu1}" styleClass="foot_row"/></div>
                                                    <div class="tb-row3"><h:outputText value="#{TourBean.tongthu2}" styleClass="foot_row"/></div>
                                                    <div class="tb-row4"><h:outputText value="#{TourBean.tongthu3}" styleClass="foot_row"/></div>
                                                    <div class="tb-row5"><h:outputText value="#{TourBean.tongthu4}" styleClass="foot_row"/></div>
                                                </div>



                                            </div>

                                        </div>
                                        <!-- end content bootom-->

                                    </div>
                                    <!-- start create tour around-->
                                </div>
                            </div>

                        </a4j:form>




                    </div>
                </div>
            </div>
            <rich:modalPanel id="ajaxLoadingModalBox" minHeight="30" minWidth="40"
                             height="30" width="40" zindex="2000">
                <h:outputText value="#{locale.please_wait}" styleClass="startDummer"></h:outputText>
            </rich:modalPanel>
    </body>
</html>
